import { lazy } from 'react';
import { ViewModuleIcon } from 'tdesign-icons-react';
import { IRouter } from '../index';

const result: IRouter[] = [
  {
    path: '/admin',
    meta: {
      title: '业务管理(平台端)',
      Icon: ViewModuleIcon,
    },
    children: [
      {
        path: 'order',
        Component: lazy(() => import('pages/Order/List')),
        meta: { title: '订单管理' },
      },
      {
        path: 'shipment',
        Component: lazy(() => import('pages/Shipment/List')),
        meta: { title: '运单管理' },
      },
    ],
  },
];

export default result;
